//
//  DEWRingInfoTableViewCell.m
//  OtherDemo
//
//  Created by kangbinbin on 2018/7/27.
//  Copyright © 2018年 lianjie. All rights reserved.
//

#import "DEWRingInfoTableViewCell.h"
#import "DEWPicView.h"
#import "DEWRingBtnView.h"
@interface DEWRingInfoTableViewCell ()
/** 图文内容 */
@property (strong, nonatomic) DEWPicView *Pic;
/** 投票 */
@property (strong, nonatomic) DEWRingBtnView *BtnView;


@end

@implementation DEWRingInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
 
}
-(void)setFrame:(CGRect)frame{
    
    frame.origin.y += 10;
    frame.size.height -= 10;
    
    
    [super setFrame:frame];
}
- (void)layoutSubviews{
    [super layoutSubviews];
    
//    [self addSubview:self.Pic];
    [self addSubview:self.BtnView];
    
}
#pragma mark -  图文内容
-(DEWPicView *)Pic{
    if (_Pic == nil) {
        _Pic = [[DEWPicView alloc]initWithFrame:CGRectMake(self.NameLable.left, self.timeL.Wbotoom + 50, DEWScreenWidth - 49 - 15, 70)];
    }
    return _Pic;
}
-(DEWRingBtnView *)BtnView{
    if (_BtnView ==nil) {
        _BtnView = [[DEWRingBtnView alloc]initWithFrame:CGRectMake(self.NameLable.left, self.timeL.Wbotoom + 50, DEWScreenWidth - 49 - 15, 70)];
        _BtnView.IsType = @"0";
        _BtnView.oNum = 0.32;
    }
    return _BtnView;
}

#pragma mark - 评论
- (IBAction)commentBtnClick:(id)sender {
    
}
#pragma mark - 点赞
- (IBAction)lickbtnclick:(UIButton *)sender {
    sender.selected = !sender.selected;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
